#include <stdio.h>
#include <math.h>

#define TARGET 64

int main() {
	long long ans = 0;
	long long factor_2 = 0;
	long long newFactor_2 = 0;
	for (long long factor_1 = 1 ; factor_1 <= sqrt(TARGET) ; factor_1++) {
		if (TARGET % factor_1 != 0) {
			continue;
		}
		factor_2 = TARGET / factor_1;
		for (long long factor_3 = 1 ; factor_3 <= sqrt(factor_2) ; factor_3++) {
			newFactor_2 = factor_2 / factor_3;
			if (TARGET % factor_3 != 0 || TARGET % newFactor_2 != 0) {
				continue;
			}
			if ((factor_1 * newFactor_2 * factor_3 == TARGET) && (newFactor_2 >= factor_1 && factor_1 >= factor_3)) {
				if (factor_1 == newFactor_2 && newFactor_2 == factor_3) {
					printf("factor_1 = %lld , facotr_2 = %lld , factor_3 = %lld +1\n", factor_1, newFactor_2, factor_3);
					ans++;
				} else if (factor_1 == newFactor_2 || factor_1 == factor_3 || newFactor_2 == factor_3) {
					printf("factor_1 = %lld , facotr_2 = %lld , factor_3 = %lld +3\n", factor_1, newFactor_2, factor_3);
					ans += 3;
				} else {
					printf("factor_1 = %lld , facotr_2 = %lld , factor_3 = %lld +6\n", factor_1, newFactor_2, factor_3);
					ans += 6;
				}
			} else {
				continue;
			}
		}
	}
	printf("%lld\n", ans);
	return 0;
}
